package com.yx.pc.api.service.impl;

import com.yx.pc.api.service.PcTdClassificationService;
import com.yx.system.dao.TdClassificationMapper;
import com.yx.system.entity.TdClassification;
import com.yx.system.service.TdClassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class PcTdClassificationServiceImpl implements PcTdClassificationService {

    @Autowired
    private TdClassificationMapper tdClassificationMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdClassificationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdClassification record) {
        return tdClassificationMapper.insert(record);
    }

    @Override
    public int insertSelective(TdClassification record) {
        return tdClassificationMapper.insertSelective(record);
    }

    @Override
    public TdClassification selectByPrimaryKey(Integer id) {
        return tdClassificationMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdClassification record) {
        return tdClassificationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdClassification record) {
        return tdClassificationMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdClassification> queryList(Map<String, Object> map) {
        return tdClassificationMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdClassificationMapper.queryTotal(map);
    }
}
